package com.project.dao;

import com.project.bean.ContractBean;
import java.util.List;

public interface ContractMapper {
    int deleteByPrimaryKey(Integer ctId);

    int insert(ContractBean record);

    int insertSelective(ContractBean record);

    ContractBean selectByPrimaryKey(Integer ctId);

    int updateByPrimaryKeySelective(ContractBean record);

    int updateByPrimaryKey(ContractBean record);

    int insertBatchSelective(List<ContractBean> records);

    int updateBatchByPrimaryKeySelective(List<ContractBean> records);
    
    List<ContractBean> selectByStateAndPage(Integer state,Integer UId,Integer start,Integer size);
    
    int countByState(Integer state,Integer UId);

}